@mixin text-line($value) {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: $value;
  /* autoprefixer: off */
  -webkit-box-orient: vertical;
  /* autoprefixer: on */
  word-break: break-all;
}

.set-of-books-company {
  .top-box {
    display: flex;
    justify-content: space-between;
    padding: 0 20px 16px 20px;
    box-shadow: inset 0 -1px 0 0 #DBE6F3;
    .button-search-box {
      & > * {
        margin-right: 8px;
      }
    }
    .search-input-box {
      flex-shrink: 0;
      display: flex;
      justify-content: right;
      .light-bulb {
        transition: all ease 0.2s;
        background-color: #4B8DFF;
        margin-left: 8px;
        width: 28px;
        height: 28px;
        border-radius: 4px;
        border: 1px solid #4B8DFF;
        padding: 6px;
        .light-bulb-icon {
          color: #fff;
          vertical-align: 0.15em;
        }
        &:hover {
          border: 1px solid #7EAEFF;
          background-color: #7EAEFF;
        }
      }
      .ant-select-selection--single {
        height: 28px;
        .ant-select-selection__rendered {
          line-height: 27px;
        }
      }
      .ant-input {
        height: 28px;
        line-height: 27px;
      }
    }
  }

  .set-of-books-company-title {
    font-weight: 500;
    font-size: 16px;
    color: #1E2126;
    line-height: 24px;
  }
  .set-of-books-company-tip {
    font-size: 14px;
    color: #4E5B71;
    line-height: 20px;
    font-weight: normal;
  }
  .set-of-books-company-content {
    overflow: hidden;
    display: flex;
    flex-direction: row;
    justify-content: left;
    flex-wrap: nowrap;
    position: relative;
    z-index: 0;

    .left-set-of-books {
      height: calc(100vh - 162px);
      overflow: auto;
      box-shadow: 4px 0 12px 0 rgba(0, 0, 0, 0.1);
      width: 300px;
      position: relative;
      z-index: 1;

      .left-title-box {
        background-color: #fff;
        height: 56px;
        padding: 16px 20px;
        box-shadow: inset 0 -1px 0 0 #EBF0F5;
        display: flex;
        justify-content: space-between;
      }
      .menu-scroll-area {
        scroll-behavior: smooth; //部分浏览器支持
        user-select: none;
        height: calc(100vh - 218px);
        overflow-x: hidden;
        overflow-y: auto;
        &::-webkit-scrollbar {
          display: none; /* Chrome Safari */
        }
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE 10+ */
      }
      .ant-menu-inline {
        border: none;
      }
      .set-of-books-company-empty {
        min-height: calc(100vh - 166px);
      }
      .ant-menu {
        .ant-menu-item {
          padding: 0 20px !important;
          height: auto;
          box-shadow: inset 0 -1px 0 0 #EBF0F5;
          color: #6C788C;
          .menu-wrap {
            padding: 12px 0;
            .menu-title {
              line-height: 24px;
              margin-bottom: 8px;
              display: flex;
              justify-content: space-between;
              .set-of-books-company-title {
                @include text-line(1);
              }
              .menu-edit {
                transition: all ease 0.2s;
                opacity: 0;
                flex-shrink: 0;
                &:hover {
                  color: #4B8DFF;
                }
              }
            }
            .set-of-books-company-tip {
              margin-bottom: 4px;
              .active {
                color: #32CD91;
              }
              .forbid {
                color: #FF6680;
              }
            }
          }
          &:hover {
            background-color: #F2F6FF;
            color: #6C788C;
            .menu-wrap .menu-title .menu-edit {
              opacity: 1;
            }
          }
        }
      }
      &::-webkit-scrollbar {
        display: none;
      }
    }

    .center-legal-persons {
      height: calc(100vh - 162px);
      overflow: auto;
      position: relative;
      z-index: 0;
      background: #F7F8FA;
      width: calc((100% - 300px)/2);
      .center-title-box {
        background: #FFFFFF;
        box-shadow: inset 0 -1px 0 0 #EBF0F5;
        padding: 16px 20px;
        .title-and-count-box {
          display: flex;
          flex-direction: row;
          justify-content: space-between;
          margin-bottom: 12px;
        }
        .set-of-books-company-tip {
          margin-bottom: 8px;
        }
      }
      .common-scroll-area {
        padding: 20px;
        min-height: calc(100vh - 300px);
        position: relative;
      }
      &::-webkit-scrollbar {
        display: none;
      }
    }

    .right-company {
      height: calc(100vh - 162px);
      overflow: auto;
      position: relative;
      z-index: 0;
      background: #F7F8FA;
      //box-shadow: inset 1px 0 0 0 #CDD7EC;
      border-left: 1px solid #CDD7EC;
      width: calc((100% - 300px)/2);
      .right-title-box {
        background: #FFFFFF;
        box-shadow: inset 0 -1px 0 0 #EBF0F5;
        padding: 16px 20px;
        .title-and-count-box {
          display: flex;
          flex-direction: row;
          justify-content: space-between;
          margin-bottom: 9px;
        }
        .btn-box {
          .ant-btn {
            margin-right: 8px;
          }
        }
      }
      .common-scroll-area {
        padding: 20px;
        min-height: calc(100vh - 300px);
        position: relative;
      }
      &::-webkit-scrollbar {
        display: none;
      }
    }
  }
  .img-tip-box {
    width: 228px;
    height: 168px;
    .img {
      pointer-events: none;
      user-select: none;
      width: 228px;
      height: 168px;
    }
  }
  .load-more-text {
    user-select: none;
    transition: color ease 0.2s;
    font-size: 12px;
    color: #B5C0CE;
    text-align: center;
    padding: 12px 0;

    &.hover {
      &:hover {
        cursor: pointer;
        color: #4B8DFF;
      }
    }
  }
  .empty-content {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    .img-box {
      margin: 0 auto;
      width: 48px;
      height: 48px;
      .img {
        width: 48px;
        height: 48px;
      }
    }
  }
  .company-define-index {
    .btn-radios {
      padding: 0 0 0 20px;
      margin-bottom: 12px;
    }
  }
}

.helios-new-menu .set-of-books-company {
  .set-of-books-company-content {
    .left-set-of-books, .center-legal-persons, .right-company {
      height: calc(100vh - 196px);

      .menu-scroll-area {
        height: calc(100vh - 260px);
      }
      .set-of-books-company-empty {
        min-height: calc(100vh - 204px);
      }
    }
  }
}
